Optimal. Leaf size=39 \[ \frac {2 \sqrt {a} \tan ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)-a}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2773, 204} \[ \frac {2 \sqrt {a} \tan ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)-a}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 2773
Rubi steps
\begin {align*} \int \csc (c+d x) \sqrt {-a+a \sin (c+d x)} \, dx &=-\frac {(2 a) \operatorname {Subst}\left (\int \frac {1}{-a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {-a+a \sin (c+d x)}}\right )}{d}\\ &=\frac {2 \sqrt {a} \tan ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {-a+a \sin (c+d x)}}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.08, size = 96, normalized size = 2.46 \[ \frac {\sqrt {a (\sin (c+d x)-1)} \left (\log \left (-\sin \left (\frac {1}{2} (c+d x)\right )-\cos \left (\frac {1}{2} (c+d x)\right )+1\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )+1\right )\right )}{d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.55, size = 223, normalized size = 5.72 \[ \left [\frac {\sqrt {-a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} + 4 \, {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) - a} \sqrt {-a} - 9 \, a \cos \left (d x + c\right ) - {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right )}{2 \, d}, -\frac {\sqrt {a} \arctan \left (\frac {\sqrt {a \sin \left (d x + c\right ) - a} {\left (\sin \left (d x + c\right ) + 2\right )}}{2 \, \sqrt {a} \cos \left (d x + c\right )}\right )}{d}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.11, size = 106, normalized size = 2.72 \[ \frac {\sqrt {-a} \log \left (\frac {{\left | -4 \, \sqrt {2} - \frac {2 \, {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1} - 6 \right |}}{{\left | 4 \, \sqrt {2} - \frac {2 \, {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1} - 6 \right |}}\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.54, size = 70, normalized size = 1.79 \[ \frac {2 \left (\sin \left (d x +c \right )-1\right ) \sqrt {-a \left (1+\sin \left (d x +c \right )\right )}\, \sqrt {a}\, \arctan \left (\frac {\sqrt {-a \left (1+\sin \left (d x +c \right )\right )}}{\sqrt {a}}\right )}{\cos \left (d x +c \right ) \sqrt {a \sin \left (d x +c \right )-a}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sin \left (d x + c\right ) - a} \csc \left (d x + c\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.03 \[ \int \frac {\sqrt {a\,\sin \left (c+d\,x\right )-a}}{\sin \left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\sin {\left (c + d x \right )} - 1\right )} \csc {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________